const express = require('express')
const ScoreRouter = express.Router()
const ScoreController = require('../controllers/ScoreController.js')

ScoreRouter.post('/api/score/find/:courseid', ScoreController.findList)
ScoreRouter.post('/api/score/list/:courseid', ScoreController.postList)
ScoreRouter.put('/api/score/list/:courseid', ScoreController.putList)
ScoreRouter.get('/api/score/list/:courseid', ScoreController.getList)
ScoreRouter.get('/api/score/nopasslist/:courseid', ScoreController.getNopassList)
ScoreRouter.get('/api/score/publishedlist/:username', ScoreController.getPublishedList)

module.exports = ScoreRouter
